projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98387b9
)
Make erc-cmd-CLEAR do what its doc string says
author
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 23 Oct 2019 09:13:54 +0000
(11:13 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 23 Oct 2019 09:13:54 +0000
(11:13 +0200)
* lisp/erc/erc.el (erc-cmd-CLEAR): Delete the buffer contents
instead of recentering (bug#31743).
lisp/erc/erc.el
patch
|
blob
|
history
diff --git
a/lisp/erc/erc.el
b/lisp/erc/erc.el
index 65a4d5034de68b33506743f74f83246fb2dda21b..86f103ef23151b4b46015c8615d703f661119328 100644
(file)
--- a/
lisp/erc/erc.el
+++ b/
lisp/erc/erc.el
@@
-2939,7
+2939,8
@@
If no USER argument is specified, list the contents of `erc-ignore-list'."
(defun erc-cmd-CLEAR ()
"Clear the window content."
- (recenter 0)
+ (let ((inhibit-read-only t))
+ (delete-region (point-min) (line-beginning-position)))
t)
(put 'erc-cmd-CLEAR 'process-not-needed t)